<form action="index.php" name="register_form" method="get" onSubmit="return valid_register(this);">

{if $state_create  }
	{assign var="name_page_register" value=`$smarty.const.PAGE_CREATE_BD`}
	{assign var="name_bd_mysql" value=`$smarty.const.NAME_DB_MYSQL`}
{else}
	{assign var="name_page_register" value=`$smarty.const.PAGE_REGISTER_DATA`}
	{assign var="name_bd_mysql" value=`$smarty.const.REGISTER_NAME_DB_MYSQL`}	
{/if}

	<p class=install_1> {$smarty.const.TITLE_CONFIG}{$name_page_register} </p> 

   <table border=1 width=64%>
   
	 {*имя хоста с базой MySql*}
	<tr>
        <td colspan=1 align=right> <p class=install_4> {$smarty.const.REGISTER_HOST} </p> </td>
        <td><input type="text" name="address_host" value="{$reg_userinfo[0]|replace:'"':'&quot;'}"></td>
    </tr>

	{if $state_create }
		{*пароль пользователя root для MySql*}
		<tr>
        	<td colspan=1 align=right> <p class=install_4> {$smarty.const.PASSWORD_ROOT_MYSQL} </p> </td>
        	<td><input type="password" name="root_mysql" value="{$reg_userinfo[1]|replace:'"':'&quot;'}"></td>
    	</tr>
	{/if}  
     
     
	 {*имя базы данных MySql в которой будет храниться информация сайта*}
	<tr>
        <td colspan=1 align=right> <p class=install_4> {$name_bd_mysql} </p> </td>
        <td><input type="text" name="name_db_mysql" value="{$reg_userinfo[2]|replace:'"':'&quot;'}"></td>
    </tr>
	
	{*имя пользователя*}
	<tr>
        <td colspan=1 align=right> <p class=install_4>  {$smarty.const.REGISTER_LOGIN_USER} </p> </td>
        <td><input type="text" name="first" value="{$reg_userinfo[3]|replace:'"':'&quot;'}"></td>
    </tr>

	{*пароль пользователя*}
	<tr>
        <td colspan=1 align=right> <p class=install_4> {$smarty.const.REGISTER_PASS} </p> </td>
        <td><input type="password" name="second" value="{$reg_userinfo[4]|replace:'"':'&quot;'}"></td>
    </tr>
     
     {*подтверждения пароля пользователя*}
	<tr>
    	<td colspan=1 align=right> <p class=install_4> {$smarty.const.REGISTER_PASS_REPEAT} </p> </td>
       	<td><input type="password" name="second_repeat" value="{$reg_userinfo[5]|replace:'"':'&quot;'}"></td>
    </tr>
    
    <tr> <td>&nbsp;</td>  <td> <br><br> </td> </tr>

    {*имя администратора*}
	<tr>
    	<td colspan=1 align=right> <p class=install_4> {$smarty.const.REGISTER_ADMIN_NAME} </p> </td>
       	<td><input type="text" name="admin_first" value="{$reg_userinfo[6]|replace:'"':'&quot;'}"></td>
    </tr>
    
    
    
    {*пароль для доступа в административную часть сайта*}
	<tr>
    	<td colspan=1 align=right> <p class=install_4> {$smarty.const.REGISTER_ADMIN_PASSWORD} </p> </td>
       	<td><input type="password" name="admin_second" value="{$reg_userinfo[7]|replace:'"':'&quot;'}"></td>
    </tr>

	<tr>
    	<td colspan=1 align=right> <p class=install_4> {$smarty.const.REGISTER_PASS_REPEAT} </p> </td>
       	<td><input type="password" name="admin_second_repeat" value="{$reg_userinfo[8]|replace:'"':'&quot;'}"></td>
    </tr>
    
	<tr> <td> &nbsp; <br><br></td> <td> &nbsp; <br><br> </td> </tr>

	<tr> 
		<td align="right"> <p class=install_4> {$smarty.const.INSTALL_ADD_DEMONSTRATION} </p>  </td> 
		<td> <input type="checkbox" name="add_demonstration" value="1" checked>  </td>
	</tr> 
    
    <tr>
    	<td colspan="1" align="right"> <input type="submit" name="return_create_bd" value="{$smarty.const.RETURN_BD_BUTTON}" onclick="push_return();"> </td>
    	{if $state_create }
       	<td> <input type="submit" name="create_ok" value="{$smarty.const.CREATE_BD_BUTTON}"> </td>
       	{else}
       	<td> <input type="submit" name="input_ok" value="{$smarty.const.INPUT_BD_BUTTON}"> </td>
       	{/if}
    </tr>

	
   	</table>
   	
</form>   	

<br><br>




